home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-2.iso
/
extra_2
/
nadir11.zip
/
INVMENU.N
< prev
next >
Wrap
Text File
|
1995-11-08
|
3KB
|
64 lines
Eval {
mdat^menu^inv^[50] = "InvPrep";
mdat^menu^inv^[51] = "ClientMaint";
mdat^menu^inv^[52] = "InvSummary";
mdat^menu^inv^[53] = "InvRepMonth";
mdat^menu^inv^[54] = "InvRepStat";
mdat^menu^inv^[55] = "MenuUte";
mdat^menu^inv^[56] = "InvKeyRebuild";
mdat^menu^inv^[57] = "InvRemove";
mdat^menu^inv^[58] = "PrinterSetup";
mdat^menu^inv^[58]^arg1 = "inv";
mdat^menu^inv^[58]^arg2 = "Invoice Printing";
mdat^menu^inv^[59] = "PrinterSetup";
mdat^menu^inv^[61] = "DosBackupRestore";
mdat^menu^inv^[61]^arg1 = "b";
mdat^menu^inv^[62] = "DosBackupRestore";
mdat^menu^inv^[62]^arg1 = "r";
mdat^menu^inv^[63] = "System";
mdat^menu^inv^[64] = "MtceInvParm";
mdat^menu^inv^[65] = "PtypMaint";
mdat^menu^inv^[66] = "VtypMaint";
}
Define InvMenu()
{
if (!univ^spar^invfname)
univ^spar^invfname = "inv.dat";
if (SymOpen("data", univ^spar^invfname) &&
SymCreate("data", univ^spar^invfname))
MsgWait(univ^spar^coname,
"Cannot open or create " . univ^spar^invfname);
scr = SdCreate("InvMenu", -1, -1, 10, 60, univ^spar^coname);
SdMenu(scr, "main", 1, "Invoice", "i", 50,
1, "Maintenance", "m", 20,
1, "Reports", "r", 21,
1, "Utilities", "u", 22,
1, "Help", "h", 4);
SdPopup(scr, "mtce", 20, 1, "Client", "c", 51,
1, "Property Type", "p", 65,
1, "Valuation Type", "v", 66);
SdPopup(scr, "rep", 21, 1, "Invoice Summary", "n", 52,
1, "Monthly Report", "m", 53,
1, "Statistics Report", "s", 54);
SdPopup(scr, "ute", 22, 1, "Invoice Parameters", "i", 64,
1, "Printer Setup", "p", 59,
1, "Invoice Utilities", "u", 23,
SysType() == "DOS", "Backup Files", "b", 61,
SysType() == "DOS", "Restore Files", "r", 62,
1, "DOS Shell", "d", 63);
SdPopup(scr, "iute", 23, 1, "Printer Setup", "p", 58,
1, "Key Rebuild", "k", 56,
1, "Removal", "r", 57);
while ((cmd = SdEdit(scr)) > 3) {
[mdat^menu^inv^[cmd]](mdat^menu^inv^[cmd]^arg1,
mdat^menu^inv^[cmd]^arg2);
}
SdDestroy(scr);
SymClose("data");
}